home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Svd Messageboard Arcive / ephemery / data / MBPREP.ZIP / HOWTODO2.BAT < prev    next >
Encoding:
DOS Batch File  |  1999-02-14  |  3.1 KB  |  59 lines

  1. @echo off
  2. :0. u have nothing OR all the msgbrd (all messages and tree-file MBxxxxxx.tre)
  3. :   somewhere in a subdir, e.g. MBXYZ (not in root!)
  4. :   perl-script files should be you know where (paths etc)
  5. :1. download current msgboard main file WHOLE (eh, well, it's not mandatory,
  6. :   but on your risk to miss some update to some old thread)
  7. :   - with some Browser, or Teleport, or the way u like (better not teleport;)
  8. :2. save/move/copy the main-msgboard-file to that MXBYZ directory (e.g. MBS.CGI)
  9. :2b. assure the MBxxxxxx.tre that is in that directory is the last one.
  10. :3. go there and run "perl MSGBRD.PL that_file"
  11. :4. after that you will have GETONLY.HTM in the directory (with links only to
  12. : the new messages) and updated MBxxxxxx.tre/hdr in the UPPER(!) directory.
  13. : The one in the MBXYZ is not touched
  14. :5. fire a Teleport or whatever good downloader at the GETONLY.HTM
  15. :   (without MSIE .htm naming!; ONE level deep ONLY)
  16. :6. wait until it finishes
  17. :7. go in the result directory (e.g. project/aa) and sort files by size.
  18. :  Anything less than 3-4K is wrong.
  19. :  Get a list of these files, copy them back into GETONLY.HTM, comment the rest
  20. :  (be careful: Teleport changes the '?' in cgi-url's to '-': change them back!)
  21. :7b. fire Teleport again over the GETONLY.HTM, and loop until all is OK.
  22. :8. goto that directory and run "perl MSG2.PL *.cgi"
  23. :   this will screen all the message-files and will produce equivallent number
  24. :   filtered and properly named HTM's (like 12345678.HTM)
  25. :9. copy/move all the 12345678.HTMs to MBXYZ/
  26. :   go there. now u can run
  27. : 9a  perl TREE2MSGc.pl ..\mbxxxxxx.tre
  28. :    to get a main msgbrd-file ..\MBxxxxxx.HTM
  29. : 9b  perl TREE2MSGc.pl ..\mbxxxxxx.tre  yes
  30. :    to get a main msgbrd-file WITH labelled missing links
  31. : 9c  perl CHECKTRE.PL  ..\mbxxxxxx.tre
  32. :     you'll get as output a htm with all the missing links if any
  33. :     then get them or go 9a
  34. :all this can be done at any time
  35. :of course you can 1st copy ..\mbxxxxxx.tre (and ..\mbxxxxxx.hdr) to that dir
  36. : and run perl-script over them... but it's better to check 1st
  37. :
  38. :known bugs:
  39. : msbgrd-from-tree-rebuilder makes MBxxxxxx.HTM, while all the messages point
  40. : back to mbxxxxxx.htm, which is slighty different ;)- cases do not match
  41. : it won't run on any unix - u should rename MBxxxxxx.HTM to mbxxxxxx.htm
  42. : (warning) Message-files are named 12345678.HTM, which is missing the starting
  43. : '9' of their real number. They were named 12345678.9, but browsers did
  44. : not recognize them as html's, therefore i renamed them.
  45. : i hope in next several years they will not overflow that billion ;)
  46.  
  47. :10a cleaining: u need only the Teleport's project file, CLEAR-DATABASEd.
  48. : the tmp download directory can be removed even prior to this
  49. : u can remove the MBS.CGI after it has been used
  50. :10b. archiving: files needed are:    *.9 or *.HTM  mbXXXXXX.tre mbXXXXXX.hdr
  51. :    and probably MBxxxxxx.HTM
  52. :   (and may be, perl scripts;)
  53. :
  54. :if anything goes wrong, the old tree-structure is in your backuped ;)
  55. : archive or in MBXYZ if u did not copy the new one over there
  56. :
  57. : Enjoy!
  58. : SvD Jan'99
  59.